home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 04 Christian / fight.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-10  |  668 b   |  51 lines

  1.  
  2.  
  3. #ifndef _Fight_H_
  4. #define _Fight_H_
  5.  
  6. #include "ieexec.h"
  7.  
  8. class Character;
  9.  
  10. class Fight : public IEExec
  11. {
  12.  
  13. public:
  14.  
  15.     Fight();
  16.  
  17.     void init   ( IEOwner * owner );
  18.     bool start  ();
  19.     bool update ();
  20.     bool finish ();
  21.  
  22.     IEOwner * getOwner ();
  23.  
  24.     const char * getName();
  25.  
  26.     enum FightStates
  27.     {
  28.         Go
  29.     };
  30.  
  31.     void newDirection ();
  32.  
  33. private:
  34.     std::string m_name;
  35.     Character * m_owner;
  36.  
  37.     Character * m_enemy;
  38.  
  39.     float m_attackTime;
  40.     float m_attackClock;
  41.     float m_justAttackedDelay;
  42.  
  43.     int   m_damage;
  44.  
  45.     const char * m_attackDesc;
  46.  
  47.     float getEnergyFact ();
  48. };
  49.  
  50. #endif
  51.